package com.xxx.ssm.baem.Tset;

import com.xxx.ssm.baem.EngSayHi;
import com.xxx.ssm.baem.SayHelp;
import com.xxx.ssm.baem.SayHi;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSayHi {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//        EngSayHi engSayHi = context.getBean("engSayHi", EngSayHi.class);
        SayHelp sayHelp = context.getBean("sayHelp", SayHelp.class);
        System.out.println("............"+sayHelp.getSayHi());
        SayHi sayHi = sayHelp.getSayHi();
        sayHi.sayHi();

    }
}
